package com.isdepci.project.eleLoad.domain;

import com.isdepci.framework.aspectj.lang.annotation.Excel;
import com.isdepci.framework.web.domain.BaseEntity;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 机械信息对象 a_machinery_information
 *
 * @author isdepci
 * @date 2025-02-26
 */
public class AMachineryInformation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 关联定额信息表ID */
    @Excel(name = "关联定额信息表ID")
    private Long quotaId;

    /** 名称 */
    @Excel(name = "名称")
    private String iname;

    /** 单位 */
    @Excel(name = "单位")
    private String machineryUnit;

    /** 数量 */
    @Excel(name = "数量")
    private BigDecimal number;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setQuotaId(Long quotaId)
    {
        this.quotaId = quotaId;
    }

    public Long getQuotaId()
    {
        return quotaId;
    }
    public void setIname(String iname)
    {
        this.iname = iname;
    }

    public String getIname()
    {
        return iname;
    }

    public String getMachineryUnit() {
        return machineryUnit;
    }

    public void setMachineryUnit(String machineryUnit) {
        this.machineryUnit = machineryUnit;
    }

    public void setNumber(BigDecimal number)
    {
        this.number = number;
    }

    public BigDecimal getNumber()
    {
        return number;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("quotaId", getQuotaId())
            .append("iname", getIname())
            .append("number", getNumber())
            .toString();
    }
}
